<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.10"/>
<title>sock: sock::net::TcpConnectionOutputStream Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">sock
   &#160;<span id="projectnumber">v0.11</span>
   </div>
   <div id="projectbrief">C++ Network Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.10 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacesock.html">sock</a></li><li class="navelem"><a class="el" href="namespacesock_1_1net.html">net</a></li><li class="navelem"><a class="el" href="classsock_1_1net_1_1_tcp_connection_output_stream.html">TcpConnectionOutputStream</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classsock_1_1net_1_1_tcp_connection_output_stream-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">sock::net::TcpConnectionOutputStream Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Tcp连接输出流  
 <a href="classsock_1_1net_1_1_tcp_connection_output_stream.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="tcp__connection__output__stream_8h_source.html">tcp_connection_output_stream.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for sock::net::TcpConnectionOutputStream:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classsock_1_1net_1_1_tcp_connection_output_stream.png" usemap="#sock::net::TcpConnectionOutputStream_map" alt=""/>
  <map id="sock::net::TcpConnectionOutputStream_map" name="sock::net::TcpConnectionOutputStream_map">
<area href="classsock_1_1net_1_1_tcp_connection_stream.html" title="Tcp连接流 " alt="sock::net::TcpConnectionStream" shape="rect" coords="0,56,228,80"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:adb35be828df7076d7a171eceda2b64fc"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classsock_1_1net_1_1_tcp_connection_output_stream.html">TcpConnectionOutputStream</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1net_1_1_tcp_connection_output_stream.html#adb35be828df7076d7a171eceda2b64fc">self</a></td></tr>
<tr class="separator:adb35be828df7076d7a171eceda2b64fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a63d1fc27a69ab5d7386c5dc280fa331d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1net_1_1_tcp_connection_output_stream.html#a63d1fc27a69ab5d7386c5dc280fa331d">TcpConnectionOutputStream</a> (<a class="el" href="classsock_1_1net_1_1_socket.html">Socket</a> &amp;sock, size_t <a class="el" href="classsock_1_1net_1_1_tcp_connection_stream.html#acbb9bc6316d1720f0921c7ec28dd2fdd">size</a>=1024 *64)</td></tr>
<tr class="separator:a63d1fc27a69ab5d7386c5dc280fa331d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade1da4f37e698bbd385df5d99b610fa1"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1net_1_1_tcp_connection_output_stream.html#ade1da4f37e698bbd385df5d99b610fa1">TcpConnectionOutputStream</a> (<a class="el" href="classsock_1_1net_1_1_socket.html">Socket</a> &amp;sock, <a class="el" href="namespacesock_1_1net.html#a2165d5b91136adc8c72ad25bfdbd0968">ByteBuffer</a> buff, size_t <a class="el" href="classsock_1_1net_1_1_tcp_connection_stream.html#acbb9bc6316d1720f0921c7ec28dd2fdd">size</a>=1024 *64)</td></tr>
<tr class="separator:ade1da4f37e698bbd385df5d99b610fa1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1a1486cf47c7aa9c57d0cb275fdfb391"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1net_1_1_tcp_connection_output_stream.html#a1a1486cf47c7aa9c57d0cb275fdfb391">~TcpConnectionOutputStream</a> ()</td></tr>
<tr class="separator:a1a1486cf47c7aa9c57d0cb275fdfb391"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1bdd407180d473f7a82f99d46df44827"><td class="memItemLeft" align="right" valign="top">ssize_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1net_1_1_tcp_connection_output_stream.html#a1bdd407180d473f7a82f99d46df44827">flush</a> (void)</td></tr>
<tr class="memdesc:a1bdd407180d473f7a82f99d46df44827"><td class="mdescLeft">&#160;</td><td class="mdescRight">把流的数据写入网络  <a href="#a1bdd407180d473f7a82f99d46df44827">More...</a><br /></td></tr>
<tr class="separator:a1bdd407180d473f7a82f99d46df44827"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4a51b9175c2ed2fcce6509627921558"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1net_1_1_tcp_connection_output_stream.html#ae4a51b9175c2ed2fcce6509627921558">write</a> (const char *buf, size_t length)</td></tr>
<tr class="memdesc:ae4a51b9175c2ed2fcce6509627921558"><td class="mdescLeft">&#160;</td><td class="mdescRight">向流中写入数据  <a href="#ae4a51b9175c2ed2fcce6509627921558">More...</a><br /></td></tr>
<tr class="separator:ae4a51b9175c2ed2fcce6509627921558"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classsock_1_1net_1_1_tcp_connection_stream"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classsock_1_1net_1_1_tcp_connection_stream')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classsock_1_1net_1_1_tcp_connection_stream.html">sock::net::TcpConnectionStream</a></td></tr>
<tr class="memitem:adf259993c6e23518827368d572dd9351 inherit pub_methods_classsock_1_1net_1_1_tcp_connection_stream"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1net_1_1_tcp_connection_stream.html#adf259993c6e23518827368d572dd9351">capacity</a> (void)</td></tr>
<tr class="memdesc:adf259993c6e23518827368d572dd9351 inherit pub_methods_classsock_1_1net_1_1_tcp_connection_stream"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取流能存储的数据大小  <a href="#adf259993c6e23518827368d572dd9351">More...</a><br /></td></tr>
<tr class="separator:adf259993c6e23518827368d572dd9351 inherit pub_methods_classsock_1_1net_1_1_tcp_connection_stream"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acbb9bc6316d1720f0921c7ec28dd2fdd inherit pub_methods_classsock_1_1net_1_1_tcp_connection_stream"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1net_1_1_tcp_connection_stream.html#acbb9bc6316d1720f0921c7ec28dd2fdd">size</a> (void)</td></tr>
<tr class="memdesc:acbb9bc6316d1720f0921c7ec28dd2fdd inherit pub_methods_classsock_1_1net_1_1_tcp_connection_stream"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取流中数据大小  <a href="#acbb9bc6316d1720f0921c7ec28dd2fdd">More...</a><br /></td></tr>
<tr class="separator:acbb9bc6316d1720f0921c7ec28dd2fdd inherit pub_methods_classsock_1_1net_1_1_tcp_connection_stream"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8fdbc2e9a98ff5060764924a01aba7b0 inherit pub_methods_classsock_1_1net_1_1_tcp_connection_stream"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1net_1_1_tcp_connection_stream.html#a8fdbc2e9a98ff5060764924a01aba7b0">space</a> (void)</td></tr>
<tr class="memdesc:a8fdbc2e9a98ff5060764924a01aba7b0 inherit pub_methods_classsock_1_1net_1_1_tcp_connection_stream"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取流剩余存储空间  <a href="#a8fdbc2e9a98ff5060764924a01aba7b0">More...</a><br /></td></tr>
<tr class="separator:a8fdbc2e9a98ff5060764924a01aba7b0 inherit pub_methods_classsock_1_1net_1_1_tcp_connection_stream"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_types_classsock_1_1net_1_1_tcp_connection_stream"><td colspan="2" onclick="javascript:toggleInherit('pro_types_classsock_1_1net_1_1_tcp_connection_stream')"><img src="closed.png" alt="-"/>&#160;Protected Types inherited from <a class="el" href="classsock_1_1net_1_1_tcp_connection_stream.html">sock::net::TcpConnectionStream</a></td></tr>
<tr class="memitem:a9b20049f75630dcb8955b0ec91faacb5 inherit pro_types_classsock_1_1net_1_1_tcp_connection_stream"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classsock_1_1net_1_1_tcp_connection_stream.html">TcpConnectionStream</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1net_1_1_tcp_connection_stream.html#a9b20049f75630dcb8955b0ec91faacb5">self</a></td></tr>
<tr class="separator:a9b20049f75630dcb8955b0ec91faacb5 inherit pro_types_classsock_1_1net_1_1_tcp_connection_stream"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_classsock_1_1net_1_1_tcp_connection_stream"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classsock_1_1net_1_1_tcp_connection_stream')"><img src="closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="classsock_1_1net_1_1_tcp_connection_stream.html">sock::net::TcpConnectionStream</a></td></tr>
<tr class="memitem:af6dcac8d6517ee12ce82c9267249a353 inherit pro_methods_classsock_1_1net_1_1_tcp_connection_stream"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1net_1_1_tcp_connection_stream.html#af6dcac8d6517ee12ce82c9267249a353">TcpConnectionStream</a> (<a class="el" href="classsock_1_1net_1_1_socket.html">Socket</a> &amp;sock, size_t <a class="el" href="classsock_1_1net_1_1_tcp_connection_stream.html#acbb9bc6316d1720f0921c7ec28dd2fdd">size</a>)</td></tr>
<tr class="separator:af6dcac8d6517ee12ce82c9267249a353 inherit pro_methods_classsock_1_1net_1_1_tcp_connection_stream"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a164a3a92764954da4dcf69d1db83536a inherit pro_methods_classsock_1_1net_1_1_tcp_connection_stream"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1net_1_1_tcp_connection_stream.html#a164a3a92764954da4dcf69d1db83536a">TcpConnectionStream</a> (<a class="el" href="classsock_1_1net_1_1_socket.html">Socket</a> &amp;sock, <a class="el" href="namespacesock_1_1net.html#a2165d5b91136adc8c72ad25bfdbd0968">ByteBuffer</a> buff, size_t <a class="el" href="classsock_1_1net_1_1_tcp_connection_stream.html#acbb9bc6316d1720f0921c7ec28dd2fdd">size</a>)</td></tr>
<tr class="separator:a164a3a92764954da4dcf69d1db83536a inherit pro_methods_classsock_1_1net_1_1_tcp_connection_stream"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a399c03537b559c9c981941051adb40c0 inherit pro_methods_classsock_1_1net_1_1_tcp_connection_stream"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1net_1_1_tcp_connection_stream.html#a399c03537b559c9c981941051adb40c0">~TcpConnectionStream</a> ()</td></tr>
<tr class="separator:a399c03537b559c9c981941051adb40c0 inherit pro_methods_classsock_1_1net_1_1_tcp_connection_stream"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac81434c87413e33503b720296ca4c530 inherit pro_methods_classsock_1_1net_1_1_tcp_connection_stream"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1net_1_1_tcp_connection_stream.html#ac81434c87413e33503b720296ca4c530">reset</a> (void)</td></tr>
<tr class="memdesc:ac81434c87413e33503b720296ca4c530 inherit pro_methods_classsock_1_1net_1_1_tcp_connection_stream"><td class="mdescLeft">&#160;</td><td class="mdescRight">重置流  <a href="#ac81434c87413e33503b720296ca4c530">More...</a><br /></td></tr>
<tr class="separator:ac81434c87413e33503b720296ca4c530 inherit pro_methods_classsock_1_1net_1_1_tcp_connection_stream"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a17a557385b5af582c98bdd525a333cf6 inherit pro_methods_classsock_1_1net_1_1_tcp_connection_stream"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1net_1_1_tcp_connection_stream.html#a17a557385b5af582c98bdd525a333cf6">read</a> (char *buf, size_t length)</td></tr>
<tr class="memdesc:a17a557385b5af582c98bdd525a333cf6 inherit pro_methods_classsock_1_1net_1_1_tcp_connection_stream"><td class="mdescLeft">&#160;</td><td class="mdescRight">从流中读数据  <a href="#a17a557385b5af582c98bdd525a333cf6">More...</a><br /></td></tr>
<tr class="separator:a17a557385b5af582c98bdd525a333cf6 inherit pro_methods_classsock_1_1net_1_1_tcp_connection_stream"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae94584be5275ff8da7f220223beb965a inherit pro_methods_classsock_1_1net_1_1_tcp_connection_stream"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1net_1_1_tcp_connection_stream.html#ae94584be5275ff8da7f220223beb965a">write</a> (const char *buf, size_t length)</td></tr>
<tr class="memdesc:ae94584be5275ff8da7f220223beb965a inherit pro_methods_classsock_1_1net_1_1_tcp_connection_stream"><td class="mdescLeft">&#160;</td><td class="mdescRight">向流中写数据  <a href="#ae94584be5275ff8da7f220223beb965a">More...</a><br /></td></tr>
<tr class="separator:ae94584be5275ff8da7f220223beb965a inherit pro_methods_classsock_1_1net_1_1_tcp_connection_stream"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f00f30ffc87897772183c70b4f3abd4 inherit pro_methods_classsock_1_1net_1_1_tcp_connection_stream"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1net_1_1_tcp_connection_stream.html#a4f00f30ffc87897772183c70b4f3abd4">peek</a> (char *buf, size_t length)</td></tr>
<tr class="memdesc:a4f00f30ffc87897772183c70b4f3abd4 inherit pro_methods_classsock_1_1net_1_1_tcp_connection_stream"><td class="mdescLeft">&#160;</td><td class="mdescRight">从流中读数据(不会从流中删除读取的数据)  <a href="#a4f00f30ffc87897772183c70b4f3abd4">More...</a><br /></td></tr>
<tr class="separator:a4f00f30ffc87897772183c70b4f3abd4 inherit pro_methods_classsock_1_1net_1_1_tcp_connection_stream"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28bb2de60e94afafaf5f66710a9442c6 inherit pro_methods_classsock_1_1net_1_1_tcp_connection_stream"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1net_1_1_tcp_connection_stream.html#a28bb2de60e94afafaf5f66710a9442c6">skip</a> (size_t length)</td></tr>
<tr class="memdesc:a28bb2de60e94afafaf5f66710a9442c6 inherit pro_methods_classsock_1_1net_1_1_tcp_connection_stream"><td class="mdescLeft">&#160;</td><td class="mdescRight">忽略数据  <a href="#a28bb2de60e94afafaf5f66710a9442c6">More...</a><br /></td></tr>
<tr class="separator:a28bb2de60e94afafaf5f66710a9442c6 inherit pro_methods_classsock_1_1net_1_1_tcp_connection_stream"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_classsock_1_1net_1_1_tcp_connection_stream"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classsock_1_1net_1_1_tcp_connection_stream')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="classsock_1_1net_1_1_tcp_connection_stream.html">sock::net::TcpConnectionStream</a></td></tr>
<tr class="memitem:a4ea4d8b723691673ea6574d0ec75535a inherit pro_attribs_classsock_1_1net_1_1_tcp_connection_stream"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsock_1_1net_1_1_socket.html">Socket</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1net_1_1_tcp_connection_stream.html#a4ea4d8b723691673ea6574d0ec75535a">sock_</a></td></tr>
<tr class="separator:a4ea4d8b723691673ea6574d0ec75535a inherit pro_attribs_classsock_1_1net_1_1_tcp_connection_stream"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Tcp连接输出流 </p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a class="anchor" id="adb35be828df7076d7a171eceda2b64fc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="classsock_1_1net_1_1_tcp_connection_output_stream.html">TcpConnectionOutputStream</a> <a class="el" href="classsock_1_1net_1_1_tcp_connection_output_stream.html#adb35be828df7076d7a171eceda2b64fc">sock::net::TcpConnectionOutputStream::self</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a63d1fc27a69ab5d7386c5dc280fa331d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TcpConnectionOutputStream::TcpConnectionOutputStream </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classsock_1_1net_1_1_socket.html">Socket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em> = <code>1024&#160;*&#160;64</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ade1da4f37e698bbd385df5d99b610fa1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TcpConnectionOutputStream::TcpConnectionOutputStream </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classsock_1_1net_1_1_socket.html">Socket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacesock_1_1net.html#a2165d5b91136adc8c72ad25bfdbd0968">ByteBuffer</a>&#160;</td>
          <td class="paramname"><em>buff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em> = <code>1024&#160;*&#160;64</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a1a1486cf47c7aa9c57d0cb275fdfb391"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TcpConnectionOutputStream::~TcpConnectionOutputStream </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a1bdd407180d473f7a82f99d46df44827"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ssize_t TcpConnectionOutputStream::flush </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>把流的数据写入网络 </p>
<dl class="section return"><dt>Returns</dt><dd>失败返回SOCKET_ERROR,成功返回写入的字节数 </dd></dl>

</div>
</div>
<a class="anchor" id="ae4a51b9175c2ed2fcce6509627921558"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">size_t sock::net::TcpConnectionOutputStream::write </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>向流中写入数据 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">buf</td><td>缓存 </td></tr>
    <tr><td class="paramname">length</td><td>缓存大小 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>写入流的数据大小 </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>E:/git/sock/sock/net/<a class="el" href="tcp__connection__output__stream_8h_source.html">tcp_connection_output_stream.h</a></li>
<li>E:/git/sock/src/net/<a class="el" href="tcp__connection__output__stream_8cc.html">tcp_connection_output_stream.cc</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.10
</small></address>
</body>
</html>
